package wiki.hitime.stl.daq.bean.db;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 数据检查记录表(DaqCheckRecord)实体类
 *
 * @author zhangdp
 * @since 2019-07-15 16:59:58
 */
@Data
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
@Table(name = "daq_check_record")
public class DaqCheckRecord {
    private static final long serialVersionUID = -71917585171326006L;

    /**
     * 编号
     **/
    @Id
    @Column(updatable = false, insertable = false)
    private Long id;

    /**
     * 执行记录编号
     **/
    private Long executeRecordId;

    /**
     * 采集记录编号
     **/
    private Long acquisitionRecordId;

    /**
     * 检查规则编号
     **/
    private Long checkRuleId;

    /**
     * 检查时间
     **/
    private Date checkTime;

    /**
     * 是否检查通过
     **/
    private Boolean checkResult;

    /**
     * 检查摘要
     **/
    private String checkSummary;

    /**
     * 处理状态，0-未处理，1-处理成功，2-处理失败
     **/
    private Integer processStatus;

    /**
     * 处理消息
     **/
    private String processMsg;

    /**
     * 控制版本号
     **/
    private Long ctlVersion;

    /**
     * 是否删除数据，0-有效，1-删除
     **/
    private Boolean isDelete;

    /**
     * 更新时间
     **/
    @Column(updatable = false, insertable = false)
    private Date modified;

    /**
     * 创建时间
     **/
    @Column(updatable = false, insertable = false)
    private Date created;
}
